import re

str=input("enter your input:")
def letters(str):
    return re.sub("[^A-Za-z]", "", str)


def reverse(string):
    return string[::-1]

print(reverse(letters(str)))

